import request from '@/utils/request';

export function listOption(query) {
  return request({
    url: '/college/courseOption/list',
    method: 'get',
    params: query
  });
}

export function addOption(data) {
  return request({
    url: '/college/courseOption/add',
    method: 'post',
    data: data
  })
}

export function editOption(data) {
  return request({
    url: '/college/courseOption/edit',
    method: 'put',
    data: data
  })
}

export function removeOption(id) {
  return request({
    url: '/college/courseOption/remove/'+id,
    method: 'delete'
  })
}

export function changeStatusCourseOption(data) {
  return request({
    url: '/college/courseOption/changeStatus',
    method: 'put',
    data: data
  })
}
